home *** CD-ROM | disk | FTP | other *** search
/ Winzipper / Winzipper_ISO.iso / programming / oracle7 7.2 / INSTALL / ORAINST.VRF < prev    next >
Encoding:
Text File  |  1995-09-21  |  4.7 KB  |  124 lines

  1. /* Copyright (c) Oracle Corporation 1992.  All Rights Reserved */
  2.  
  3. /*****************************************************************************
  4.   NAME
  5.     orainst.vrf - Windows NT V3 Installation Verify Script
  6.  
  7.   DESCRIPTION
  8.     This script verifies the Windows installer.
  9.  
  10.   MODIFIED   MM/DD/YY REASON
  11.  
  12.     kjain    09/24/93 nlsified
  13.     kjain    03/29/93 Created.
  14. *****************************************************************************/
  15.  
  16.   product_label = product_interface_label(current_product);
  17.  
  18.   ui_product(product_label);
  19.  
  20.   analyzing_dependencies = instantiate(nls("analyzing_dependencies",
  21.                        "Analyzing %%product_label%% Dependencies..."));
  22.  
  23.   ui_action(analyzing_dependencies);
  24.  
  25.    cancelling_install = nls("cancelling_install","Cancelling Installation of %%product_label%%...");
  26.  
  27.   {
  28.     if (not(distribution))
  29.       signal('UNBOUND_VARIABLE);
  30.   }
  31.     [ 'UNBOUND_VARIABLE:
  32.     {
  33.       install_from_distribution = nls("install_from_distribution","In order to install the installer, please run it from a distribution diskette or CD-ROM.");
  34.       signal('FAILURE,install_from_distribution);
  35.     }
  36.     ]
  37.  
  38.  
  39.   doit = TRUE;
  40.  
  41.   if (registered(product_name(current_product)))
  42.     {
  43.       registry = registration(product_name(current_product));
  44.       current_version = product_version(current_product);
  45.       installed_version = registry_version(registry);
  46.  
  47.       if (earlier_version(registry,current_version))
  48.     {
  49.           version_status = 'upgrade;
  50.       if (verbose)
  51.         doit = yesno_dialog(instantiate(reinstall_prompt01),TRUE,
  52.                 instantiate(reinstall_content01),
  53.                 instantiate(reinstall_help01));
  54.       else
  55.         doit = TRUE;
  56.  
  57.       if (not(doit))
  58.         if ((bootstrap) && (product_location(current_product) == ""))
  59.           information_dialog(instantiate(reinstall_prompt02),
  60.                  instantiate(reinstall_content02),
  61.                  instantiate(reinstall_help02),);
  62.     }
  63.       else if (later_version(registry,current_version))
  64.         {
  65.       version_status = 'downgrade;      
  66.       doit = yesno_dialog(instantiate(reinstall_prompt03),FALSE
  67.                   instantiate(reinstall_content03),
  68.                   instantiate(reinstall_help03));
  69.       if (not(doit))              
  70.         if ((bootstrap) && (product_location(current_product) == ""))
  71.               signal('CANCEL,cancel_prompt01);
  72.         }
  73.       else /* if (not(bootstrap)) */
  74.         {
  75.       version_status = 'reinstall;
  76.       if (verbose)
  77.         doit = yesno_dialog(instantiate(reinstall_prompt04),FALSE,
  78.                 instantiate(reinstall_content04),
  79.                 instantiate(reinstall_help04));
  80.       else
  81.         doit = TRUE;
  82.         }
  83.     }
  84.   else
  85.     version_status = 'new_install;
  86.  
  87.       success_message = nls("success_message","Please remove the Oracle Installer disk from your floppy drive. Insert disk 1 of the product you wish to install and choose the OK button. Choose Help for instructions on installing from CD-ROM.");
  88.       success_content = nls("success_content","Ready to Install");
  89.       success_help = nls("success_help","Floppy Media
  90.  
  91. To install products from floppy media, remove the Oracle Installer disk from your floppy drive and insert disk 1 of the product you wish to install. Then, choose the OK button. 
  92.  
  93. CD-ROM
  94.  
  95. To install products from CD-ROM, remove all disks from your floppy drives and choose the OK button. Then, make the Available Products window the active window and choose the From button. Select the WINDOWS.PRD file on the CD-ROM in the INSTALL subdirectory on the CD-ROM. Follow the instructions on the screen.
  96.  
  97. Installing Later
  98.  
  99. If you do not wish to install Oracle products at this time, choose the Cancel button. You may run the Installer later by choosing its icon in the Program Manager.");
  100.  
  101.   if (doit)
  102.     {
  103.       installing_executables = nls("installing_executables","Installing %%product_label%% Executables...");
  104.       installing_resources = nls("installing_resources",
  105.                  "Installing %%product_label%% Resources...");
  106.       installing_scripts = nls("installing_scripts",
  107.                    "Installing %%product_label%% Scripts...");
  108.       recording_name = nls("recording_name","Recording Company Name...");
  109.  
  110.       recording_name_error1 = nls("recording_name_error1","There was a write error recording your name in '%%oracle_home%%\DBS\OI%%nls_abbreviation%%.RES'. Please correct the problem with this file and reinstall the Installer.");
  111.  
  112.       recording_name_error2 = nls("recording_name_error2","There was a write error recording your name in '%%oracle_home%%\DBS\OIUS.RES'. Please correct the problem with this file and reinstall the Installer.");
  113.  
  114.       group_sum = sum(exec,res,script,deinstl);
  115.       return(group_sum);
  116.     }
  117.   else
  118.     {
  119.       ui_action(instantiate(cancelling_install));
  120.       return(0);
  121.     }
  122. }
  123.